package com.sikaryofficial.information;

import com.sikaryofficial.information.message.consumer.MQConsumer;
import com.sikaryofficial.information.message.product.MQProduct;
import com.sikaryofficial.common.security.annotation.EnableCustomConfig;
import com.sikaryofficial.common.security.annotation.EnableRyFeignClients;
import com.sikaryofficial.common.swagger.annotation.EnableCustomSwagger2;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.stream.annotation.EnableBinding;

/**
 * 处理数据
 *
 * @author qinjinyuan
 * @date 2023/10/27
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@Slf4j
@EnableBinding({MQProduct.class, MQConsumer.class})
@MapperScan(basePackages = {"com.sikaryofficial.**.mapper"})
// 开启自动解密功能
@EnableEncryptableProperties
public class InformationApplication {

    public static void main(String[] args) {
        SpringApplication.run(InformationApplication.class, args);
        log.info("(♥◠‿◠)ﾉﾞ  HISMK 资讯模块启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                " _       __                    _   _          \n" +
                "(_)_ _  / _|___ _ _ _ __  __ _| |_(_)___ _ _  \n" +
                "| | ' \\|  _/ _ \\ '_| '  \\/ _` |  _| / _ \\ ' \\ \n" +
                "|_|_||_|_| \\___/_| |_|_|_\\__,_|\\__|_\\___/_||_|");
    }
}
